<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
    %>
<title>Insert title here</title>
    <script type="text/javascript"
            src="<%=basePath%>/js/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/bootstrap.min.js"></script>
    <script type="text/javascript"
            src="<%=basePath%>/js/bootstrap-paginator.js"></script>
  </head>
<body>

<div id="page" >
</div>
</body>
<script type="text/javascript">
    //var totalpages=${pageBeanSearch. totalPage };
    //var searchForm=${pageBeanSearch. searchForm};
    //var currentPage =${pageBeanSearch. currentPage }
            $(function(){
                var options={
                    bootstrapMajorVersion:1, //版本
                   // currentPage:currentPage, //当前页数
                    currentPage:1,
                    numberOfPages:5, // 最多显示Page页
                    //totalPages :totalpages, //所有 数据可以显示的页数
                    totalPages :4,
                    pageurl: function(type, page, current){
                    if (page==current) {
                        return "javascript:void(0)";
                    }else
                        return "";
                    }
                };
                $("#page").bootstrapPaginator(options);
            })
</script>

</html>